commencement of proceedings before magistrate